from build import opt_core3
import pandas as pd

need_time= [pd.Timestamp('2025-05-29 07:29:36')]#最新数据的时间戳
latest_one_new=[[pd.Timestamp('2025-05-29 07:29:36'), 469.706726,431.0983616666666,
  539.432434, 16.741943, 0.7, 2.938889, 528.03302, 60.735016, 0.0, 0.0,
  442.82057027777773, 430.30466722222224, 63.234436, 91.30099166071429,
  153.47908842857143, 56.0, 0.0, 18.877808, 29.437347, 0.255665, 0.0, 0.0,
  3.6824282681748555, 466.02429773182513]]
 #最新1条数据
latest_n_new=[[pd.Timestamp('2025-05-29 07:29:36'), 469.706726,431.0983616666666,
  539.432434, 16.741943, 0.7, 2.938889, 528.03302, 60.735016, 0.0, 0.0,
  442.82057027777773, 430.30466722222224, 63.234436, 91.30099166071429,
  153.47908842857143, 56.0, 0.0, 18.877808, 29.437347, 0.255665, 0.0, 0.0,
  3.6824282681748555, 466.02429773182513],[[pd.Timestamp('2025-05-29 07:29:36'), 469.706726,431.0983616666666,
  539.432434, 16.741943, 0.7, 2.938889, 528.03302, 60.735016, 0.0, 0.0,
  442.82057027777773, 430.30466722222224, 63.234436, 91.30099166071429,
  153.47908842857143, 56.0, 0.0, 18.877808, 29.437347, 0.255665, 0.0, 0.0,
  3.6824282681748555, 466.02429773182513]],[[pd.Timestamp('2025-05-29 07:29:36'), 469.706726,431.0983616666666,
  539.432434, 16.741943, 0.7, 2.938889, 528.03302, 60.735016, 0.0, 0.0,
  442.82057027777773, 430.30466722222224, 63.234436, 91.30099166071429,
  153.47908842857143, 56.0, 0.0, 18.877808, 29.437347, 0.255665, 0.0, 0.0,
  3.6824282681748555, 466.02429773182513]],[[pd.Timestamp('2025-05-29 07:29:36'), 469.706726,431.0983616666666,
  539.432434, 16.741943, 0.7, 2.938889, 528.03302, 60.735016, 0.0, 0.0,
  442.82057027777773, 430.30466722222224, 63.234436, 91.30099166071429,
  153.47908842857143, 56.0, 0.0, 18.877808, 29.437347, 0.255665, 0.0, 0.0,
  3.6824282681748555, 466.02429773182513]],[[pd.Timestamp('2025-05-29 07:29:36'), 469.706726,431.0983616666666,
  539.432434, 16.741943, 0.7, 2.938889, 528.03302, 60.735016, 0.0, 0.0,
  442.82057027777773, 430.30466722222224, 63.234436, 91.30099166071429,
  153.47908842857143, 56.0, 0.0, 18.877808, 29.437347, 0.255665, 0.0, 0.0,
  3.6824282681748555, 466.02429773182513]],[[pd.Timestamp('2025-05-29 07:29:36'), 469.706726,431.0983616666666,
  539.432434, 16.741943, 0.7, 2.938889, 528.03302, 60.735016, 0.0, 0.0,
  442.82057027777773, 430.30466722222224, 63.234436, 91.30099166071429,
  153.47908842857143, 56.0, 0.0, 18.877808, 29.437347, 0.255665, 0.0, 0.0,
  3.6824282681748555, 466.02429773182513]],[[pd.Timestamp('2025-05-29 07:29:36'), 469.706726,431.0983616666666,
  539.432434, 16.741943, 0.7, 2.938889, 528.03302, 60.735016, 0.0, 0.0,
  442.82057027777773, 430.30466722222224, 63.234436, 91.30099166071429,
  153.47908842857143, 56.0, 0.0, 18.877808, 29.437347, 0.255665, 0.0, 0.0,
  3.6824282681748555, 466.02429773182513]],[[pd.Timestamp('2025-05-29 07:29:36'), 469.706726,431.0983616666666,
  539.432434, 16.741943, 0.7, 2.938889, 528.03302, 60.735016, 0.0, 0.0,
  442.82057027777773, 430.30466722222224, 63.234436, 91.30099166071429,
  153.47908842857143, 56.0, 0.0, 18.877808, 29.437347, 0.255665, 0.0, 0.0,
  3.6824282681748555, 466.02429773182513]]] #最新n条数据，历史数据足够就是数据，不够就是False
enough_his=True #历史数据是否足够
opt_core3(need_time, latest_one_new, latest_n_new, enough_his)